#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QObject>
#include <QtNetwork>
#include <QTcpServer>
#include <QTcpSocket>
#include "tcpclientmanager.h"

class TcpServer : public QObject
{
    Q_OBJECT
public:
    explicit TcpServer(QObject *parent = 0);
    ~TcpServer();
signals:
    void receivedMessage(QByteArray message);
    void acceptedConnection();
public slots:
    void receiveMessage(QByteArray message);
    void acceptConnection();
    void sendData(QByteArray);
private:
    QTcpServer server;
    TcpClientManagers_ptr _clients;
};

#endif // TCPSERVER_H
